package com.shenfa.util.sequence;

import java.sql.SQLException;

import org.springframework.beans.factory.annotation.Autowired;

import com.ibatis.sqlmap.client.SqlMapClient;

/**
 * 序列Dao
 * @author David
 *
 */
public class SequenceDao {

	@Autowired
	private SqlMapClient sqlMapClient;
	
	
	public String getSeq(String seqName) throws SQLException {
		return String.valueOf(sqlMapClient.queryForObject("sequence_manager.getSeq", seqName));
	}
	
}
 